import { _decorator, Component, Node, Sprite, resources, SpriteFrame, UITransform, Layers, Event } from 'cc';
const { ccclass, property } = _decorator;
import EventManager from "../../Runtime/EventManager";
import {CONTROLLER_ENUM, EVENT_ENUM} from "../../Enums";

@ccclass('ControllerManager')
export class ControllerManager extends Component {

    handleCtrl(event:Event, data:string) {
        EventManager.Instance.emit(EVENT_ENUM.PLAYER_CONTROL, data as CONTROLLER_ENUM);
    }

}

